<template>
    <el-button size="small" type="primary" icon="el-icon-refresh" @click="refresh()">刷新</el-button>
</template>
<script>
// import { loginout } from '../api/userMG'
export default {
  name: 'navcon',
  data() {
    return {
      collapsed: true,
      imgshow: require('../assets/img/show.png'),
      imgsq: require('../assets/img/sq.png'),
      user: {}
    }
  },
 methods:{
    refresh() {
      this.loading = true;
      setTimeout(async () => {
        await this.getShowSpecial(); // 这里是拿到数据
        this.loading = false; // 计时器结束 停止转圈圈
      }, 1000);
    },
 }
}
</script>